﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.RentHouse.DTO
{
    public class AdminDTO
    {
        /// <summary>
        /// 管理员Id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 管理员名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string PhoneNum { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 城市编号(关联T_Cities表)
        /// </summary>
        public string CityId { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PasswordHash { get; set; }
        /// <summary>
        /// 盐值
        /// </summary>
        public string PasswordSalt { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 角色Id集合 (关联T_Roles表)
        /// </summary>
        public List<long> roleIds { get; set; }
        public int LoginErrorTimes { get; set; }
        public DateTime LastLoginErrorDateTime { get; set; }
    }
}
